//
//  YSDefine.h
//  Yaoyle
//
//  Created by ZhaoXudong on 14-9-12.
//  Copyright (c) 2014年 ZhaoXudong. All rights reserved.
//

#ifndef Yaoyle_YSDefine_h
#define Yaoyle_YSDefine_h

#define APP_KEY @"930835029"

//#define HTTP_SERVER_URL  @"http://115.29.144.246/api/"
//#define SOCKET_SERVER_URL          @"115.29.144.246"
//#define SOCKET_SERVER_PORT         8088

#define HTTP_SERVER_URL  @"http://www.yedianshaiwang.com/api/"
#define SOCKET_SERVER_URL          @"www.yedianshaiwang.com"
#define SOCKET_SERVER_PORT         8088

#define kAPP_VERSION            @"200001"       // 格式必须为 200***  200代表ios  ***代表版本号

#define kREQUEST_PARAMS         @"kRequestParams"
#define kFUN_ID                 @"kFunId"

#define API_Result_STATUS    @"status"
#define API_Result_RE        @"re"
#define API_Result_MSG       @"msg"

#define DefaultValueForKey(key)             [[NSUserDefaults standardUserDefaults] valueForKey:key]
#define DefaultSetValueForKey(value,key)    [[NSUserDefaults standardUserDefaults] setValue:value forKey:key];\
                                            [[NSUserDefaults standardUserDefaults] synchronize];
#define RemoveDefaultObjectForKey(key)      [[NSUserDefaults standardUserDefaults] removeObjectForKey:key]

#define DictSetValueForKey(dic,value,key)       [dic setValue:value forKey:key];

#define kNotificationLoginOut       @"notificationLoginOut"
#define kNotificationSystemRadio    @"notificationSystemRadio"
#define kNotificationOtherStatus    @"notificationOtherStatus"
#define kNotificationSocketFail     @"notificationSocketFail"
#define kNotificationQuizFail       @"notificationQuizFail"


#define kNotificationFirstLogin     @"notificationFirstLogin"   // 第一次登陆


#define IS_OS_5_OR_LATER    ([[[UIDevice currentDevice] systemVersion] floatValue] >= 5.0)
#define IS_OS_6_OR_LATER    ([[[UIDevice currentDevice] systemVersion] floatValue] >= 6.0)
#define IS_OS_7_OR_LATER    ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0)
#define IS_DeviceiPad       (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)


#define kDefaultBoyHead @"head_boy"
#define kDefaultGirlHead    @"head_girl"
//


#pragma mark - 各种key

// 微信支付
#define WX_Partner_Id   @"1221051001"
#define WX_App_Id       @"wx0efabc4ae60261b1"
#define WX_App_Key      @"2A0vO7RXlbTS1NGPCQ4HQL57A6eHyvPVAyJ3NoAe2c3xCoC9IX4iiCY91b12Cfp2woi1jt1Megt4qiwtPjfQsfCSG2L58CqhdTiBORb0wqkG2e5gztOewvj5OkufnBV3"

#define kNotificationWeiXinPaySuccess   @"notificationWeiXinPaySuccess"     // 支付成功
#define kNotificationWeiXinPayFail      @"notificationWeiXinPayFail"        // 支付失败

#define kNotificationWeiXinShareSuccess @"notificationWeiXinShareSuccess"   // 分享成功
#define kNotificationWeiXinShareFail    @"notificationWeiXinShareFail"      // 分享失败
// 朋友圈分享

// 微博分享
#define WB_App_Key      @"1876975061"
#define WB_Share_Secret @"4ac1656c946fc60533b436f412968c0a"
#define WB_Share_BackUrl    @"https://api.weibo.com/oauth2/default.html"

#define kNotificationWeiBoShareSuccess @"notificationWeiBoShareSuccess"   // 分享成功
#define kNotificationWeiBoShareFail    @"notificationWeiBoShareFail"      // 分享失败

#endif
